import java.io.Serializable;


public class Message implements Serializable {
	private static final long serialVersionUID = 3091566348724610219L;
	public static final int PING = -1;
	public static final int DISPLAY = 0;
	public static final int CHAT = 1;
	public static final int UPDATE = 2;
	public static final int PLAYER = 3;
	public static final int ACTION = 4;
	public static final int ENDTURN = 5;
	public int type;
	public String text;
	public int number;
	public Server.Communication.Client from = null;
	public GameState g;
	public Message(int typ, String txt) {
		type = typ;
		text = txt;
	}
	public Message(int typ, GameState gm) {
		type = typ;
		g = gm;
	}
	public Message(int typ, int num) {
		type = typ;
		number = num;
	}
}
